<?php
class Library {

    protected $lib;

    public function __construct() {
        $this->lib = array();
    }

    public function initialize($params)
    {   
        if(count($params) > 0)
        {
            foreach ($params as $key => $val)
            {
                if(isset($key))
                {
                    $this->$key = $val;
                }
            }
        }
    }
}